package com.mytools.common.pattern.composite03;

/**
 * @author LJK
 * @description
 * @date 2025/2/24
 */
public class County implements Count{

    private final String name;
    private final int cnt;

    public County(String name, int cnt) {
        this.name = name;
        this.cnt = cnt;
    }

    @Override
    public int getValue() {
        return this.cnt;
    }
}
